Skip to content

[AutoRelease] t2-policyinsights-2025-07-05-59782(can only be merged by SDK owner) #41914

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

azure-sdk
Copy link
Collaborator

@azure-sdk
Copy link
Collaborator Author

@Copilot Copilot AI review requested due to automatic review settings July 5, 2025 01:15
Copy link
Contributor

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR updates the Policy Insights SDK for the 2025-07-05 auto-release by:

  • Adding generated async and sync attestations operation tests (with skipped markers and placeholders for assertions)
  • Bumping sample snippets’ x-ms-original-file API version references from older versions to 2024-10-01
  • Adding sanitizers for sensitive data in conftest.py

Reviewed Changes

Copilot reviewed 178 out of 197 changed files in this pull request and generated no comments.

File Description
generated_tests/test_policy_insights_attestations_operations_async.py Introduces async attestations tests (skipped)
generated_tests/test_policy_insights_attestations_operations.py Introduces sync attestations tests (skipped)
generated_samples/remediations_create_subscription_scope_resource_ids_filter.py New sample with hard-coded subscription ID
Comments suppressed due to low confidence (3)

sdk/policyinsights/azure-mgmt-policyinsights/generated_tests/test_policy_insights_attestations_operations_async.py:29

  • This test currently has no assertions. Add basic checks (e.g., assert result, or verify expected properties) to ensure the client call returns valid data.
        # please add some check logic here by yourself

sdk/policyinsights/azure-mgmt-policyinsights/generated_tests/test_policy_insights_attestations_operations.py:28

  • Placeholder comment remains instead of real assertions. Provide checks like assert any(r for r in response) or validate response schema to improve test coverage.
        # please add some check logic here by yourself

sdk/policyinsights/azure-mgmt-policyinsights/generated_samples/remediations_create_subscription_scope_resource_ids_filter.py:31

  • Hard-coded subscription ID can expose environment-specific details. Consider sourcing this value from an environment variable or configuration to avoid leaking IDs in sample code.
        subscription_id="35ee058e-5fa0-414c-8145-3ebb8d09b6e2",

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant